#调用库函数printf

.section .data
	output:
	.ascii "The number is %d\n"

.section .bss
	.lcomm buffer, 18

.section .text

.globl _start
_start:
	pushl $520
	pushl $output
	call printf
	addl  $8, %esp
	pushl $0
	call exit

#编译
#as --32 -o print.o print.s
#ld -dynamic-linker /lib/ld-linux.so.2 -lc -m elf_i386 -o a.out print.o 
#ld中-l表示指定库，c为要找的库名,即libc.so
